package org.sdp.pearproject.controller;


import org.sdp.pearproject.dto.request.*;
import org.sdp.pearproject.dto.response.*;
import org.sdp.pearproject.service.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.Date;
import java.util.List;

/**
 * @ClassName: MemberSuperController
 * @Description:
 * @Author: SDP
 * @Date: 2022-07-18
 * @Version: 1.0
 * Table: pear_member
 * Comment:
 * 用户表
 */
public class MemberSuperController extends BaseController {
    @Autowired
    MemberService service;

    public Integer addMember(MemberAddRequest request) throws Exception {
        return service.addMember(request);
    }

    public Integer updateMember(MemberUpdateRequest request) throws Exception {
        return service.updateMember(request);
    }

    public Integer deleteMember(MemberDeleteRequest request) throws Exception {
        return service.deleteMember(request);
    }

    public MemberQueryResponse queryMember(MemberQueryRequest request) throws Exception {
        return service.queryMember(request);
    }

    public List<MemberQueryResponse> listMember(MemberQueryRequest request) throws Exception {
        return service.listMember(request);
    }

    public Integer countMember(MemberQueryRequest request) throws Exception {
        return service.countMember(request);
    }

    public BaseStatResponse statMember(MemberQueryRequest request) throws Exception {
        return service.statMember(request);
    }


}
